package com.dy.lock.screen.service;

import java.util.List;
import java.util.Map;

import com.dy.lock.screen.pojo.AdvertCollectInfo;
import com.dy.lock.screen.scoket.Head;

public interface AdvertCollectService {

	/**
	 * 保存收藏的广告
	 * 
	 * @param advertCollect
	 * @param head
	 * @return
	 */
	public int save(AdvertCollectInfo advertCollect, Head head);

	/**
	 * 根据广告id和用户id删除收藏的广告
	 * 
	 * @param adId
	 * @param userId
	 * @param head
	 * @return
	 */
	public int delete(String adId, String userId, Head head);

	/**
	 * 根据广告id和用户id查询
	 * 
	 * @param adId
	 * @param userId
	 * @param head
	 * @return
	 */
	public AdvertCollectInfo queryByAdAndUser(String adId, String userId,
			Head head);

	/**
	 * 分页查询
	 * 
	 * @param map
	 * @param head
	 * @return
	 */
	public List<AdvertCollectInfo> queryPage(Map<String, Object> map, Head head);

}
